package nc.ui.mmpac.sumpickm.handler.head;

import nc.ui.mmpac.sumpickm.handler.SumPickmBaseHandler;
import nc.ui.mmpub.dpub.filter.ref.FilterBillTypeRefUtil;
import nc.ui.pub.beans.UIRefPane;
import nc.ui.pubapp.uif2app.event.card.CardHeadTailBeforeEditEvent;
import nc.ui.pubapp.uif2app.event.card.CardPanelEvent;
import nc.vo.mmpac.sumpickm.entity.SumPickmHeadVO;

public class SumPickmCardHeadSumPickmTypeHandler extends SumPickmBaseHandler {
    @Override
    public void beforeEdit(CardPanelEvent event) {

        CardHeadTailBeforeEditEvent e = (CardHeadTailBeforeEditEvent) event;

        UIRefPane tranTypePane =
                (UIRefPane) e.getBillCardPanel().getHeadItem(SumPickmHeadVO.CSUMPICKMTYPE).getComponent();

        FilterBillTypeRefUtil utils = new FilterBillTypeRefUtil(tranTypePane);
        utils.filterByICBillTypes(new String[] {
            "55AD"
        });
    }
}
